package juc;

import lombok.extern.slf4j.Slf4j;

@Slf4j(topic = "main")
public class ThreadStartAndRun{
    public static void main(String[] args) {
        Thread t1 = new Thread("t1"){
            @Override
            public void run() {
                log.info(currentThread().getName());
                System.out.println(currentThread().getName());
            }
        };
        t1.run();
        t1.start();
        log.debug("do something ");
        System.out.println("123");
    }
}
